//
//  XMGEssenceViewCongtroller.m
//  01 baisi
//
//  Created by 檀志文 on 16/2/11.
//  Copyright © 2016年 ios檀志文. All rights reserved.
//

#import "XMGEssenceViewCongtroller.h"
#import "XMGTestViewController.h"


@implementation XMGEssenceViewCongtroller
-(void)viewDidLoad{
    [super viewDidLoad];

//    设置导航栏标题
    self.navigationItem.titleView=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"MainTitle"]];
// 设置导航栏左边的按钮
    self.navigationItem.leftBarButtonItem=[UIBarButtonItem itemWithImage:@"MainTagSubIcon" highImage:@"MainTagSubIconClick" target:self action:@selector(tagClick)];
    //    设置背景色
    self.view.backgroundColor=XMGGlobalBg;
}

-(void)tagClick{
    XMGLogFunc;
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    XMGTestViewController *vc=[[XMGTestViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}
@end
